package com.zjs.ioc;

import lombok.extern.slf4j.Slf4j;

/**
 * 描述
 *
 * @author zhu_jinsheng
 * @version 1.0
 * @date 2020/8/5 17:15
 */

@Slf4j
public class HelloInstanceFactory {
    public HelloInstanceFactory(){
        System.out.println("实例工厂方法构造函数");
    }

    //利用实例工厂方法创建对象
    public HelloIoc getInstance(){
        HelloIoc instanceIoc = new HelloIoc();
        return instanceIoc;
    }
}
